import matplotlib.pyplot as plt;
import numpy as np;

x=np.linspace(0.99,1.01,101)
y1=x**8-8*x**7+28*x**6-56*x**5+70*x**4-56*x**3+28*x**2-8*x+1
y2=(((((((x-8)*x+28)*x-56)*x+70)*x-56)*x+28)*x-8)*x+1
y3=(x-1)**8
plt.figure()
plt.plot(x,y1,label='f(x)')
plt.plot(x,y2,label='g(x)')
plt.plot(x,y3,label='h(x)')
plt.legend()
plt.savefig("program.png")